<?php
class ueditorAction extends rareAction{
	public function execute(){
		$title = htmlspecialchars($_POST['pictitle'], ENT_QUOTES);
		$img = new Img($_FILES['upfile']);
		$re = $img->saveUpload();
		$src = ltrim(service_image::getSrc($re),'/');
		echo "{'url':'" .$src . "','title':'" . $title . "','original':'test','state':'SUCCESS'}";
		exit;
	}
}
?>
